#include "syscall.h"

int main(){

	FPrint("Signalling without acquiring\n",30,0,0);
	SignalCondition(0,0);
	
	CreateLock();
	FPrint("Signalling with wrong lock\n",28,0,0);
	AcquireLock(0);
	SignalCondition(0,1);
	ReleaseLock(0);
	
	FPrint("Signalling with illegal lock\n",30,0,0);
	AcquireLock(0);
	SignalCondition(0,10);
	ReleaseLock(0);
	
	FPrint("Signalling on illegal condition\n",33,0,0);
	AcquireLock(0);
	SignalCondition(10,0);
	ReleaseLock(0);

	FPrint("Broadcasting on condition\n",25,0,0);
	AcquireLock(0);
	BroadcastCondition(0,0);
	ReleaseLock(0);
	
}